import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import demo3 from './demo3.vue'
import demo4 from './demo4.vue'
import Demo5 from './Demo5.vue'
import Demo6 from './Demo6.vue'

Vue.use(VueRouter);
Vue.config.productionTip = false

const router = new VueRouter({
  routes: [
    { path: '/index', component: demo3 },
    { path: '/demo4', component: demo4 },
    { path: '/demo5', component: Demo5 },
    { path: '/demo6', component: Demo6 },
  ]
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
